package com.macro.mall.tiny.modules.pms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 品牌表
 * </p>
 *
 * @author tyrone
 * @since 2024-10-09
 */
@Getter
@Setter
@TableName("pms_brand")
@ApiModel(value = "PmsBrand对象", description = "品牌表")
public class PmsBrand implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("品牌名")
    private String name;

    @ApiModelProperty("首字母")
    private String firstLetter;

    @ApiModelProperty("品牌logo")
    private String logo;

    @ApiModelProperty("排序 默认0")
    private String sort;

    @ApiModelProperty("展示状态 0:普通 1:热门 默认为普通")
    private Integer showStatus;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageNum = 1 ;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageSize = 10;

    public enum ShowStatusEnum {
        HOT(1, "热门"),
        SIMPLE(0, "普通");
        private int code;
        private String message;

        ShowStatusEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }
    }


}
